package com.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName biz_orderdetail
 */
@TableName(value ="biz_orderdetail")
@Data
public class BizOrderdetail implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer orderdetailid;

    /**
     * 
     */
    private Integer partsid;

    /**
     * 
     */
    private Integer orderid;

    /**
     * 
     */
    private Integer orderpartscount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizOrderdetail other = (BizOrderdetail) that;
        return (this.getOrderdetailid() == null ? other.getOrderdetailid() == null : this.getOrderdetailid().equals(other.getOrderdetailid()))
            && (this.getPartsid() == null ? other.getPartsid() == null : this.getPartsid().equals(other.getPartsid()))
            && (this.getOrderid() == null ? other.getOrderid() == null : this.getOrderid().equals(other.getOrderid()))
            && (this.getOrderpartscount() == null ? other.getOrderpartscount() == null : this.getOrderpartscount().equals(other.getOrderpartscount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderdetailid() == null) ? 0 : getOrderdetailid().hashCode());
        result = prime * result + ((getPartsid() == null) ? 0 : getPartsid().hashCode());
        result = prime * result + ((getOrderid() == null) ? 0 : getOrderid().hashCode());
        result = prime * result + ((getOrderpartscount() == null) ? 0 : getOrderpartscount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderdetailid=").append(orderdetailid);
        sb.append(", partsid=").append(partsid);
        sb.append(", orderid=").append(orderid);
        sb.append(", orderpartscount=").append(orderpartscount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}